"use strict";

/**
 * @returns {EventSource}
 */
function mkEventSource() {
  const es = new EventSource("http://localhost:3000/events");
  es.addEventListener("message", (e) => {
    console.log("message", e.data);
  });
  return es;
}
